package com.lishe.lishe.lishe.module.main.interfaces;

import com.lishe.lishe.lishe.module.main.bean.ApkMessage;
import com.lishe.lishe.lishe.module.main.bean.NoticeObject;
import com.lishe.lishe.retrofit.BaseRequestBody;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Created by yang on 2017/12/11.
 */

public interface HttpInterface {

    @FormUrlEncoded
    @POST("other/getNewVersion")
    Observable<BaseRequestBody<ApkMessage>> getNewVersion(@Field("type") int type);

    @FormUrlEncoded
    @POST("Jpush/updateDevice")
    Observable<BaseRequestBody> updateDevice(@Field("re_id") String re_id,@Field("alias") String alias,
                                             @Field("mobile") String mobile,@Field("addTags") String addTags,@Field("removeTags") String removeTags);

    @GET("other/getNotice")
    Observable<BaseRequestBody<List<NoticeObject>>> getNotice();
}
